package com.zhan.picturebackend;

import org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

// 排除分库分表依赖，单表的查询性能高了，但整体查询的性能可能会减少，为了减少修改代码方便部署，暂时不使用分库分表
@SpringBootApplication(exclude = {ShardingSphereAutoConfiguration.class})
@MapperScan("com.zhan.picturebackend.mapper")
//exposeProxy = true后，可以在方法执行时通过AopContext.currentProxy()获取当前的代理对象
@EnableAspectJAutoProxy(exposeProxy = true)
public class PictureBackendApplication {

    public static void main(String[] args) {
        SpringApplication.run(PictureBackendApplication.class, args);
    }

}
